<template>
  <div class="day1">
    <img class="bg" src="@/assets/image/day1bg.png" alt="" />
    <!-- 小标题 -->
    <div class="box">
      <img class="title" src="@/assets/image/小标题.png" alt="" />
      <img class="cont" src="@/assets/image/1.png" alt="" />

      <img @click="openMap('107.531', '22.4265', '崇左服务区', '广西壮族自治区崇左市江州区')" class="cont buji" src="@/assets/image/导航1.png" alt="" />

      <img @click="openMap('106.946', '22.7086', '广西崇左秘境丽世度假村', '广西壮族自治区崇左市大新县243国道明仕田园景区内')"  class="cont " src="@/assets/image/导航2.png" alt="" />
      <div class="back" @click="$router.replace('/list')">
        <img src="@/assets/image/返回目录.png" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  inject: ['openMap'],
  data() {
    return {
    }
  },

}
</script>

<style lang="scss" scoped>
.day1 {
  width: 100%;
  height: 100%;
  position: relative;
}
.day1 .bg {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.box {
  position: absolute;
  top: 39vw;
  text-align: center;
  .buji {
    position: absolute;
    top: 25.2rem;
    left: 50%;
    transform:translateX(-50%);
  }
}
.box .title {
  width: 81vw;
}
.cont {
  margin-top: 9vw;
  width: 80vw;
}
.back {
  margin-top: 12vw;
  width: 4.2rem;
  display: inline-block;
  color: #000;
}
.back img {
  width: 100%;
}
</style>